<?php

set_include_path(implode(PATH_SEPARATOR, array(
	'E:\workspaces\default\magento\lib',
	get_include_path()
)));

require_once 'Zend/Sql/Adapter/Standard/Expression/Identifier/Schema.php';
require_once 'Zend/Sql/Adapter/Standard/Expression/Identifier/Table.php';
require_once 'Zend/Sql/Adapter/Standard/Expression/Identifier/Column.php';

$expr_db = new Zend_Sql_Adapter_Standard_Expression_Identifier_Schema('my_db');
$expr_tb = new Zend_Sql_Adapter_Standard_Expression_Identifier_Table('my_tb');
$expr_cl = new Zend_Sql_Adapter_Standard_Expression_Identifier_Column('my_cl', 'my_tb', 'my_db');
if ($expr_cl->getName() !== 'my_cl')   { echo 'FAILLED' . __LINE__ . PHP_EOL;}
if ($expr_cl->getColumn() !== 'my_cl') { echo 'FAILLED' . __LINE__ . PHP_EOL;}
if ($expr_cl->getTable() !== 'my_tb')  { echo 'FAILLED' . __LINE__ . PHP_EOL;}
if ($expr_cl->getSchema() !== 'my_db') { echo 'FAILLED' . __LINE__ . PHP_EOL;}
if ($expr_cl->toString() !== '`my_db`.`my_tb`.`my_cl`') { echo 'FAILLED' . __LINE__ . PHP_EOL;}
//echo $expr_cl;// mauvaise pratique


